package com.leyou.item.mapper;

import com.leyou.item.pojo.Brand;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BrandMapper extends Mapper<Brand> {

      int insertCategoryBrand(@Param("bid") Long id,@Param("cids")List<Long> cids);

      @Delete("delete from tb_category_brand where brand_id = #{cid}")
       void deleteCategoryBrand( @Param("cid") Long id);

      @Delete("delete from tb_category_brand where brand_id = #{bid}")
        void deleteByBrandIdInCategoryBrand(@Param("bid") Long bid);
}
